package com.itheima.String;

import java.util.Scanner;

public class String5 {
    public static void main(String[] args) {
        //1.创建对象
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个小数:");
        double cc = sc.nextDouble();
        System.out.println("cc =" + cc);
        System.out.println("请输入一个字符串");
        //2.调用nextLine方法接收字符串
        // ctrl + alt + v : 快速生成方法的返回值
        String s = sc.next();
        System.out.println(s);
    }
}
